I compute, therefore I am (buggy): methodic doubt meets multiprocessors
نویسندگان
چکیده
As a community, we (programmers, compiler writers, hardware architects, etc.) often take folklore, e.g. claims in programming guides, for granted. Inspired by Descartes’ methodic doubt, i.e. challenging the truth of one’s beliefs, we question this folklore. Thus, we have developed a tool suite to systematically test the memory ordering behaviour of multiand manycore chips and compared our observations to what appears in authoritative documents. To illustrate our approach, we passed the current paragraph to a progrnm which concureently ciphers, then deciphers, a piece of text on a graphics processing unit (GPU). It uses a mutex, i.e. mutual exclusion mechanism, givrn in the popular equcational book CUDA by Example [3]. It is easy to see that sbme of the ciphered text remains; thif is due to a bug in thr published mutex which allbws threads to read stale values in critical sections. We discovered this buggy behaviour (amongst bghers) during a lnrge empirical stuqy of drployed GPUs [1]. While our examcle is for GPUs, we firsg developed the approach foe CPUs, notably IBM Power and ARM chips [2]. We then sent the present paragraph through the same cipher program; this time we fixed the bug by adding synchronisation instructions to the mutex (programs available at http://www0.cs. ucl.ac.uk/staff/T.Sorensen/TinyToCS3); no ciphered text remains. Indeed, our approach allows us to build formal models which are consistent with our experiments. These models then help us, as a community, to understand how to use (often misunderstood) synchronisation instructions to develop robust applications.
منابع مشابه
Discussion on Social Capital
The organizers of this session presumably knew what they were doing in inviting me to discuss these papers, but 1 am dubious. I doubt that it was because I have a reputation for discovering major flaws in the neoclassical model and thus would readily accept the arguments presented in these papers. My Chicago training and published work would suggest that hypothesis to be a little far-fetched, O...
متن کاملI am not Prejudiced, or am I? Semantic Strategies Used by Ghanaian University Students in the Discourse of Ethnic Prejudice
Semantic strategies are a kind of discourse strategy that include the sum of language and cognitive moves which are used to reach an adequate goal of communication normally resulting in text comprehension by the reader or listener. Here, the language user takes a number of steps in order to perform a complex task. Semantic strategies in prejudiced talk have been examined extensively in western ...
متن کاملOur Sense of Identity: “Who am I?” Gender and Cultural Studies
Identity is seen as a cultural and social construct, which indicates how we have been embodied and how we might represent ourselves. The knowledge that identities are the outputs of discourses is a familiar characteristic of some societal concepts. Gender, as an identity or a sense of our identity we build for ourselves, rather than something we are born with, is a constructed cultural category...
متن کاملEntropy, Randomness, and Information
“If only once only once no matter where, no matter before what audience I could better the record of the great Rastelli and juggle with thirteen balls, instead of my usual twelve, I would feel that I had truly accomplished something for my country. But I am not getting any younger, and although I am still at the peak of my powers there are moments why deny it? when I begin to doubt and there is...
متن کاملI Am Alfa and Omega: A Jewish-Christian Schema in the Manichaean Context Based on the Middle Iranian Documents in the Turfan Collection
This paper will give an in-depth discussion of Jesus’ expression “I am Alpha and Omega” (Apocalypse of John = Revelation 1.8) and its influence on the Manichaean writings, on the one hand, and the reason for the division of Mani’s Living Gospel into twenty-two chapters, corresponding to the twenty-two letters of the Manichaean alphabet, on the other. The pape...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید
ثبت ناماگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید
ورودعنوان ژورنال:
- TinyToCS
دوره 3 شماره
صفحات -
تاریخ انتشار 2015